package net.borlis.sample.services.facade.ws.response;

import org.apache.commons.lang.builder.ToStringBuilder;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * @author alex@borlis.net on 05.06.2014.
 */
@XmlRootElement
public class VitoFilterResponse {

    @XmlElement
    private List<BaseCountryResponse> countries;

    @XmlElement
    private List<BaseVitoResponse> vito;

    @XmlElement
    private List<ProviderResponse> hotelProviders;

    @XmlElement
    private List<ProviderResponse> flightProviders;

    public VitoFilterResponse() {
    }

    public VitoFilterResponse(List<BaseCountryResponse> countries, List<BaseVitoResponse> vito,
                              List<ProviderResponse> hotelProviders, List<ProviderResponse> flightProviders) {
        this.countries = countries;
        this.vito = vito;
        this.hotelProviders = hotelProviders;
        this.flightProviders = flightProviders;
    }

    public List<BaseCountryResponse> getCountries() {
        return countries;
    }

    public List<BaseVitoResponse> getVitos() {
        return vito;
    }

    public List<ProviderResponse> getHotelProviders() {
        return hotelProviders;
    }

    public List<ProviderResponse> getFlightProviders() {
        return flightProviders;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this).
                append("countries", getCountries()).
                append("vito", getVitos()).
                append("hotelProviders", getHotelProviders()).
                append("flightProviders", getFlightProviders()).
                toString();
    }

}
